<?php

declare(strict_types=1);
/**
 * This file is part of WanZ.
 * @link     https://wanz.com
 * @document https://wanz.wiki
 * @contact  group@wanz.com
 * @license  https://github.com/wanz-cloud/wanz/blob/master/LICENSE
 */
use Hyperf\Contract\StdoutLoggerInterface;
use MoChat\Framework\Log\StdoutLoggerFactory;
use Psr\EventDispatcher\EventDispatcherInterface;

$dependencies = [];

$dependencies = array_merge(registerServiceMap(BASE_PATH . '/app/core'), $dependencies);

$appEnv = env('APP_ENV', 'production');
if ($appEnv !== 'dev') {
    $dependencies[StdoutLoggerInterface::class] = StdoutLoggerFactory::class;
}

return $dependencies + [];
